/*
 * @Author: 葛文杰
 * @Date: 2021/2/1 17:55
 * @Description: egg router 数据源接口参数配置
 */

'use strict';

module.exports = app => {
    const { router, controller } = app;

    const { dataSourceInterfaceParam } = controller;

    router.post('/dataSourceInterfaceParam/getInterfaceParamByDataSourceConfigId',
      dataSourceInterfaceParam.getInterfaceParamByDataSourceConfigId); // 获取数据源接口参数列表
    router.post('/dataSourceInterfaceParam/getInterfaceParamInfoById',
      dataSourceInterfaceParam.getInterfaceParamInfoById); // 获取数据源接口参数详情
    router.post('/dataSourceInterfaceParam/insertInterfaceParamInfoById',
      dataSourceInterfaceParam.insertInterfaceParamInfoById); // 新增数据源接口参数详情
    router.post('/dataSourceInterfaceParam/updateInterfaceParamInfoById',
      dataSourceInterfaceParam.updateInterfaceParamInfoById); // 修改数据源接口参数详情
    router.post('/dataSourceInterfaceParam/deleteInterfaceParamById',
      dataSourceInterfaceParam.deleteInterfaceParamById); // 删除数据源接口参数
};
